package j.quartz.zdao.entity;

import java.util.Date;

public class IUser {
    /**
     * 是否锁定（1：正常；-1：删除；0：锁定；）
     */
    public static final String STATUS_DELETE = "-1";
    public static final String STATUS_LOCKED = "0";
    public static final String STATUS_NORMAL = "1";

    private String uuid;

    private String username;

    private String password;

    private String nickNm;

    private String roleNm;

    private Date createTime;

    private String descs;

    private String sts;

    private Integer orderNo;

    private String salt ;

    /**
     * 角色集合
     * @return
     */
 /*   private Set<SysRole> roleSet ;

    public Set<SysRole> getRoleSet() {
        return roleSet;
    }
    public void setRoleSet(Set<SysRole> roleSet) {
        this.roleSet = roleSet;
    }*/

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getCredentialsSalt() {
        return username + salt;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getNickNm() {
        return nickNm;
    }

    public void setNickNm(String nickNm) {
        this.nickNm = nickNm == null ? null : nickNm.trim();
    }

    public String getRoleNm() {
        return roleNm;
    }

    public void setRoleNm(String roleNm) {
        this.roleNm = roleNm == null ? null : roleNm.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDescs() {
        return descs;
    }

    public void setDescs(String descs) {
        this.descs = descs == null ? null : descs.trim();
    }

    public String getSts() {
        return sts;
    }

    public void setSts(String sts) {
        this.sts = sts == null ? null : sts.trim();
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }

    @Override
    public String toString() {
        return "IUser{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickNm='" + nickNm + '\'' +
                ", roleNm='" + roleNm + '\'' +
                ", sts='" + sts + '\'' +
                ", salt='" + salt + '\'' +
                '}';
    }
}
